//
//  Clnetwork.h
//  AF
//
//  Created by 曹亮 on 2017/2/28.
//  Copyright © 2017年 曹亮. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>
//请求成功回调Block
typedef void (^requestSuccessBlock)(NSDictionary*dic);
//请求失败回调block
typedef void (^requestFailureBlock)(NSError *error);

//请求方法defin
typedef enum {
    GET,
    POST,
    PUT,
    DELETE,
    HEAD}
HTTPMethod;


@interface Clnetwork : AFHTTPSessionManager

+(instancetype)shareManager;

//封装网络请求
-(void)requestWithMethod:(HTTPMethod)method WithPath:(NSString*)path WithParas:(NSDictionary*)paras WithSuccessBlock:(requestSuccessBlock)success WithfailureBlock:(requestFailureBlock)failure;









@end
